<html>
	<head>
		<meta charset="utf-8"></meta>
		<title>BCode</title>
		<link href="./style.css" rel="stylesheet" type="text/css"/>
	</head>
	<body>
		<div class="class" name="BCode">
			<h1>BCode</h1>
			<p id="resume">BCode表示一个UTF8字符。<a href="#desc">详细</a></p>
			<h2>public</h2>
			<table id="public">
				<tr><td align="right">inline </td><td><a href="#BCode()">BCode</a>();</td></tr>
				<tr><td align="right">inline </td><td><a href="#BCode(char)">BCode</a>(char ch);</td></tr>
				<tr><td align="right">inline </td><td><a href="#BCode(const char*)">BCode</a>(const char* cstr);</td></tr>
				<tr><td align="right">inline </td><td><a href="#BCode(const BCode&)">BCode</a>(const BCode& code);</td></tr>
				<tr><td align="right">inline char </td><td><a href="#utf() const">utf</a>() const;</td></tr>
				<tr><td align="right">inline char </td><td><a href="#num() const">num</a>() const;</td></tr>
				<tr><td align="right">inline const char* </td><td><a href="#str() const">str</a>() const;</td></tr>
				<tr><td align="right">inline </td><td><a href="#operator int() const">operator int</a>() const;</td></tr>
				<tr><td align="right">inline bool </td><td><a href="#isLarge() const">isLarge</a>() const;</td></tr>
				<tr><td align="right">inline bool </td><td><a href="#isSpace() const">isSpace</a>() const;</td></tr>
				<tr><td align="right">inline bool </td><td><a href="#isPunct() const">isPunct</a>() const;</td></tr>
				<tr><td align="right">inline bool </td><td><a href="#isDigit() const">isDigit</a>() const;</td></tr>
				<tr><td align="right">inline bool </td><td><a href="#isAlpha() const">isAlpha</a>() const;</td></tr>
				<tr><td align="right">inline bool </td><td><a href="#operator = (const char*)">operator = </a>(const char* cstr);</td></tr>
				<tr><td align="right">inline bool </td><td><a href="#operator = (const BCode&)">operator = </a>(const BCode& other);</td></tr>
				<tr><td align="right">inline bool </td><td><a href="#operator == (char) const">operator == </a>(char code) const;</td></tr>
				<tr><td align="right">inline bool </td><td><a href="#operator == (short) const">operator == </a>(short code) const;</td></tr>
				<tr><td align="right">inline bool </td><td><a href="#operator == (int) const">operator == </a>(int code) const;</td></tr>
				<tr><td align="right">inline bool </td><td><a href="#operator == (const BCode&) const">operator == </a>(const BCode& code) const;</td></tr>
				<tr><td align="right">inline bool </td><td><a href="#operator != (char) const">operator != </a>(char code) const;</td></tr>
				<tr><td align="right">inline bool </td><td><a href="#operator != (short) const">operator != </a>(short code) const;</td></tr>
				<tr><td align="right">inline bool </td><td><a href="#operator != (int) const">operator != </a>(int code) const;</td></tr>
				<tr><td align="right">inline bool </td><td><a href="#operator != (const BCode&) const">operator != </a>(const BCode& code) const;</td></tr>
			</table>
			<div id="desc">
				<h2>详细介绍：</h2>
				<p>BCode表示一个UTF8字符。</p>
				<p>常作为BString一部分使用，使用BCode::num()方法获得字符所占用的字节数, 使用BCode::str()获得此字符的字符串形式。utf()方法用以获得当前字符的编码类型，若为utf8字符则其值为8。</p>
			</div>
			<h2 id="docs">成员文档：</h2>
			<div id="BCode()">
				<h3>inline BCode();</h3>
				<p>构造一个空的字符。</p>
			</div>
			<div id="BCode(char)">
				<h3>inline BCode(char ch);</h3>
				<p>构造一个字符，其值为ascii字符ch，所以其数目为1，utf值为0，表示没有特殊的编码格式。</p>
			</div>
			<div id="BCode(const char*)">
				<h3>inline BCode(const char* cstr);</h3><p>构造一个字符，其值从字符串cstr中截取第一个字符，识别字符的编码格式。</p>
			</div>
			<div id="BCode(const BCode&)">
				<h3>inline BCode(const BCode&amp; code);</h3>
				<p>构造一个字符，拷贝另一个字符的内容。</p>
			</div>
			<div id="utf() const">
				<h3>inline char utf() const;</h3><p>取得utf编码格式，此值表示此字符的编码格式，0表示其为ASCII码，8表示UTF-8，16表示UTF-16，32表示UTF-32。</p>
			</div>
			<div id="num() const">
				<h3>inline char num() const;</h3><p>获得字符宽度，值为1~4。</p>
			</div>
			<div id="str() const">
				<h3>inline const char* str() const;</h3>
			</div>
			<div id="operator int() const">
				<h3>inline operator int() const;</h3>
			</div>
			<div id="isLarge() const">
				<h3>inline bool isLarge() const;</h3>
			</div>
			<div id="isSpace() const">
				<h3>inline bool isSpace() const;</h3>
			</div>
			<div id="isPunct() const">
				<h3>inline bool isPunct() const;</h3>
			</div>
			<div id="isDigit() const">
				<h3>inline bool isDigit() const;</h3>
			</div>
			<div id="isAlpha() const">
				<h3>inline bool isAlpha() const;</h3>
			</div>
			<div id="operator = (const char*)">
				<h3>inline bool operator = (const char* cstr);</h3>
				<p>Contructs a code starts at the cstr. this will check the type of code, then copys the bytes.</p>
			</div>
			<div id="operator = (const BCode&)">
				<h3>inline bool operator = (const BCode&amp; other);</h3>
			</div>
			<div id="operator == (char) const">
				<h3>inline bool operator == (char code) const;</h3>
			</div>
			<div id="operator == (short) const">
				<h3>inline bool operator == (short code) const;</h3>
			</div>
			<div id="operator == (int) const">
				<h3>inline bool operator == (int code) const;</h3>
			</div>
			<div id="operator == (const BCode&) const">
				<h3>inline bool operator == (const BCode&amp; code) const;</h3>
			</div>
			<div id="operator != (char) const">
				<h3>inline bool operator != (char code) const;</h3>
			</div>
			<div id="operator != (short) const">
				<h3>inline bool operator != (short code) const;</h3>
			</div>
			<div id="operator != (int) const">
				<h3>inline bool operator != (int code) const;</h3>
			</div>
			<div id="operator != (const BCode&) const">
				<h3>inline bool operator != (const BCode&amp; code) const;</h3>
			</div>
		</div>
	</body>
</html>